package com.hotau.product.vo;

import com.hotau.location.CommonData;

public class ProductDetail extends CommonData {
	public String productId;
	public String productName;
	public String price;
	public String city;
	public String address;
	public String telphone;
	public String travelPlan;
	public String feature;
	public String orderNote;
	public String feeInclude;
	public String feeNoInclude;
	public String FriendNote;
	public String promote;
	public String postionInfo;
	public String serviceProvider;
	public String image1;
	public String rate;

	public int getRate() {
		try {
			return rate == null ? 0 : Integer.parseInt(rate);
		} catch (Exception e) {
			e.printStackTrace();
			return 0;
		}
	}

	public int getRateTol() {
		try {
			int displayRate = (rate == null) ? 0 : Integer.parseInt(rate);
			return displayRate == 0 ? 3 : displayRate;
		} catch (Exception e) {
			e.printStackTrace();
			return 0;
		}
	}
}
